// 覆盖 element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

// 上传图片后覆盖掉上传按钮
.hideUpload {
  .el-upload--picture-card {
    display: none;
  }
}

.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

.el-dropdown-menu {
  a {
    display: block;
  }
}

.el-range-separator {
  box-sizing: content-box;
}

// 步进条
/* 进行中状态：圈线 */
.el-step__head.is-process {
  color: #293c66;
  border-color: #293c66;
}
/* 进行中状态：圈内 */
.el-step__head.is-process > .el-step__icon {
  background: #293c66;
  color: #fff;
}
/* 进行中状态：title（文字） */
.el-step__title.is-process {
  color: #293c66;
}

/* 完成状态：圈线 */
.el-step__head.is-success {
  color: #293c66;
  border-color: #293c66;
}
/* 完成状态：title（文字） */
.el-step__title.is-success {
  color: #293c66;
}
.el-step__description.is-success {
  color: #293c66;
}

.el-step__description.is-process {
  color: #293c66;
}
/* 完成状态：line
 * 描述：第一步完成，第二步进行时，之间的进度条有颜色
 */
.el-step__head.is-success > .el-step__line > .el-step__line-inner {
  width: 100% !important;
  border-width: 1px !important;
}

// 按钮
.el-button--primary {
  background-color: $jg-color-primary;
  border-color: $jg-color-primary;
}
.el-button--primary:focus,
.el-button--primary:hover {
  background: $jg-color-primary;
  border-color: $jg-color-primary;
}
.el-button--text,
.el-button--text:hover {
  color: $jg-color-primary;
}

.el-button--primary.is-disabled,
.el-button--primary.is-disabled:active,
.el-button--primary.is-disabled:focus,
.el-button--primary.is-disabled:hover {
  background: $jg-color-primary;
  border-color: $jg-color-primary;
}

// 分页器
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: $jg-color-primary;
}

// 选择框
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: $jg-color-primary;
  background-color: $jg-color-primary;
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: $jg-color-primary;
}

.el-radio__input.is-checked .el-radio__inner {
  border-color: $jg-color-primary;
  background: $jg-color-primary;
}

.el-radio__input.is-checked + .el-radio__label {
  color: $jg-color-primary;
}
.el-radio__inner:hover {
  border-color: $jg-color-primary;
}

// tabs
.el-tabs__item.is-active {
  color: $jg-color-primary;
}
.el-tabs__active-bar {
  background-color: $jg-color-primary;
}

.el-tabs__item:hover {
  color: $jg-color-primary;
}

// switch
.el-switch.is-checked .el-switch__core {
  border-color: $jg-color-primary;
  background-color: $jg-color-primary;
}
.el-switch__label.is-active {
  color: $jg-color-primary;
}
